package com.euq.mapper;

import com.euq.entity.Task;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface TaskMapper {
    @Select("select * from task")
    List<Task> listAll();
    @Select("select * from task where name like #{name}")
    List<Task> listByName(String name);
}
